<template>
  <avue-crud :data="data" :option="option"></avue-crud>
</template>
<script>
import { integralsub } from '@/api/shop/pointsMall/pointsOrder.js'
export default {
  data() {
    return {
      data: [],
      option: {
        index: true,
        indexLabel: "序号",
        page: false,
        align: "center",
        menu: false,
        header: false,
        menuAlign: "center",
        column: [
          {
            label: "商品名称",
            prop: "goodsName",
          },
          {
            label: "商品规格",
            prop: "goodsAttributeName",
          },
          {
            label: "购买商品价格",
            prop: "payGoodsPrice",
          },
          {
            label: "兑换数量",
            prop: "payGoodsNum",
          },
          {
            label: " 商品小计（个）",
            prop: "payTotal",
          },
        ],
      },
    };
  },
  mounted(){
    this.getDetail()
  },
  methods: {
    getDetail() {
      integralsub(this.$route.query.id).then((val) => {
        let data = val.data.data
        this.data = data.goodsDetailDto
      });
    },
  },
  mounted() {
    this.getDetail();
  },
};
</script>